package org.hzandyy.framework.liteflow.flow;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Hu Zhi
 * @since 2023/12/1 9:25
 */
@LiteflowComponent("b")
@Slf4j
public class BCmp extends NodeComponent {

    @Override
    public void process() throws Exception {
        Object obj = getCurrLoopObj();
        if (null == obj) {
            log.info("process b");
        } else {
            if (obj instanceof String s) {
                log.info("process b val [{}]", s);
            }
        }
    }

}
